//
// Created by ziya on 2021/4/29.
//

#ifndef ZIYA_JVM_CPP_HEAPWORD_H
#define ZIYA_JVM_CPP_HEAPWORD_H

#include "../../../include/memory/memory_cell.h"

class HeapWord {
private:
    MemoryCell* cell;
    void* i;
public:
    HeapWord(MemoryCell* p) {
        cell = p;
        i = cell->ptr();
    }

    char* value() {
        return (char *)i;
    }
};


#endif //ZIYA_JVM_CPP_HEAPWORD_H
